package com.example.netty.listenner;

import javax.annotation.Resource;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import com.example.netty.utils.NettyUtils;
import lombok.extern.slf4j.Slf4j;

/**
 * @author feina
 * @Title: NettyListenner.java
 * @Package com.example.netty.listenner
 * @Description 客户端监听
 * @date 2023/4/23 13:28
 * @Copyright
 */
@Component
@Slf4j
public class NettyListenner implements ApplicationRunner {

    @Resource
    private NettyUtils nettyUtils;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        nettyUtils.connect();
    }
}
